<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>数据类型</title>
</head>
<body>
  <p>
    值类型(基本类型)：字符串（String）、数字(Number)、布尔(Boolean)、对空（Null）、未定义（Undefined）、Symbol。
  </p>
  <p>
    引用数据类型（对象类型）：对象(Object)、数组(Array)、函数(Function)，还有两个特殊的对象：正则（RegExp）和日期（Date）。
  </p>

  <script>
    var str = "hello world"
    console.log(str, "string")
    var num = 123
    console.log(num, "number")
    var bool = true
    console.log(bool, "boolean")
    var n = null
    console.log(n, "null")
    var u = undefined
    console.log(u, "undefined")
    console.log("------👆-----基本类型");
    var obj = {
      name: "zhangsan",
      age: 18
    }
    console.log(obj, "object");
    var arr = [1, 2, 3, 4, 5]
    console.log(arr, "array");
    var strArr = ["hello", "world"]
    console.log(strArr, "string array");
    var objArr = [
      {
        name: "zhangsan",
        age: 18
      },
      {
        name: "lisi",
        age: 20
      }
    ]
    console.log(objArr, "object array");
  </script>
</body>
</html>